/*
 *  Copyright 2015-2016, RenGu Technology (BeiJing) Co., Ltd.
 *  All right reserved.
 *
 *  THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF RENGU TECHNOLOGY (BeiJing) CO., LTD.
 *
 *  THE CONTENTS OF THIS FILE MAY NOT BE DISCLOSED TO THIR PARTIES,
 *  COPIED OR DUPLICATED IN ANY FORM, IN WHOLE OR IN PART,
 *  WITHOUT THE PRIOR WRITTEN PERMISSION OF RENGU TECHNOLOGY (BeiJing) CO., LTD.
 *
 *  AcctStatusEnum
 *
 *  Edit History:
 *      lizhangtao Created on 2020年04月09日
 *
 */
package cc.rengu.igas.acct.common.enums;


/**
 * 账户状态枚举
 *
 * @author lizhangtao
 */
public enum AcctCustomerStatusEnum {
    //客户信息正常
    NORMAL("00", "正常"),
    //客户信息注销
    CANCEL("01", "注销");
    private String status;
    private String desc;

    AcctCustomerStatusEnum(String status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public String getStatus() {
        return status;
    }

    public String getDesc() {
        return desc;
    }


    public static AcctCustomerStatusEnum getInstance(String status) {
        switch (status) {
            case "00":
                return NORMAL;
            case "01":
                return CANCEL;
            default:
                return null;
        }
    }
}
